<template>
  <view>
    <view :style="{ paddingTop: statusBarHeight + 'px' }">
      <router-view></router-view>
    </view>
  </view>
</template>
<script>
import { mapGetters, mapActions } from 'vuex'
export default {
	data() {
	    return {
	      statusBarHeight: 0
	    }
	  },
	onLaunch: function () {
		console.log('App Launch')
		this.setStatusBarHeight()
	},
	onShow: function () {
		console.log('App Show')
	},
	onHide: function () {
		console.log('App Hide')
	},
	onLoad() {},
	 methods: {
	    setStatusBarHeight() {
	      uni.getSystemInfo({
	        success: (res) => {
	          this.statusBarHeight = res.statusBarHeight;
			  console.log(this.statusBarHeight)
	        }
	      });
	    }
	  }
	
}
</script>
<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
/* uni.scss */
@import '@/static/style/uview.theme.scss';
</style>